#include "mycallback.h"

MyCallback::MyCallback(QObject *parent) :
    Sbs2Callback(parent)
{
}

void MyCallback::getData(Sbs2Packet *packet)
{
    thisPacket = packet;

    currentPacketCounter =  packet->counter;
    ++ currentPacket;

    sbs2DataHandler->setThisPacket(thisPacket);

    sbs2DataHandler->record();

    if (!(thisPacket->cq == -1))
	emit cqValue(thisPacket->cqName,thisPacket->cq);


}
